<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix = "c" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix = "fmt" %>
<%@page isELIgnored="false"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<table>
	 <c:forEach items="${customers }" var="cc" varStatus="a" >
	 	<tr>
	 		<td>${a.index }</td>
	 		<td>ID：${cc.id }</td>
	 	    <td>姓名：${cc.cname }</td>
	 		<td>
	 		性别：
	 		<c:if test="${cc.sex }">男</c:if>
	 		<c:if test="${!cc.sex }">女</c:if>
	 		</td>
	 		<td>工资：${cc.sal }元</td>
	 		<td>生日：<fmt:formatDate pattern="yyyy年MM月dd日" value="${cc.birth }"></fmt:formatDate></td>
	 		<td>兴趣：<c:forEach items="${cc.favs }" var="ff">${ff }&nbsp;</c:forEach></td>

	 		<td><a href="delete?id=${cc.id}">删除</a></td>
            <td><a href="target?id=${cc.id}">修改</a></td>
	 	</tr>
	 </c:forEach>
	 </table>
</body>
</html>